package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @Auther: 高源
 * @Time:2020/5/3 13:39
 * @Description: 吐槽微服务dao
 * @version:1.0
 */
public interface SpitDao extends MongoRepository<Spit,String> {

    /**
     * 根据上级id查询吐槽列表（分页）
     */
    public Page<Spit> findByParentid(String parentid, Pageable pageable);
}
